import request from '@/utils/request'

// 查询首页导航列表
export function listANavigation(query) {
  return request({
    url: '/system/aNavigation/list',
    method: 'get',
    params: query
  })
}

// 查询首页导航详细
export function getANavigation(id) {
  return request({
    url: '/system/aNavigation/' + id,
    method: 'get'
  })
}

// 新增首页导航
export function addANavigation(data) {
  return request({
    url: '/system/aNavigation',
    method: 'post',
    data: data
  })
}

// 修改首页导航
export function updateANavigation(data) {
  return request({
    url: '/system/aNavigation',
    method: 'put',
    data: data
  })
}

// 删除首页导航
export function delANavigation(id) {
  return request({
    url: '/system/aNavigation/' + id,
    method: 'delete'
  })
}
